/*
 *  Class name: Wrapper.java
 *  Version: 1.0
 *  Date: 3.6.2014
 */
package cz.muni.fi.pv168.addressbook.entities.xml;

import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAnyElement;

/**
 *
 * @author Michal Ďuriš
 * @param <E>
 */
public class Wrapper<E> {

    private final List<E> items;

    public Wrapper() {
        items = new ArrayList<>();
    }

    public Wrapper(List<E> items) {
        this.items = items;
    }

    @XmlAnyElement(lax = true)
    public List<E> getItems() {
        return items;
    }
}
